using System;
using UnityEngine;

[Serializable]
public class playerinst : MonoBehaviour
{
	public GameObject audioplayer;

	public void Update()
	{
		if (PlayerPrefs.GetInt("Music") == 1)
		{
			if (!GameObject.Find("audioplayer(Clone)"))
			{
				UnityEngine.Object.Instantiate(audioplayer);
			}
			else
			{
				UnityEngine.Object.Destroy(gameObject);
			}
		}
	}

	public void Main()
	{
	}
}
